package com.gluck.cases.core.block;

import com.gluck.cases.core.modal.dto.PermissionListDTO;
import com.gluck.cases.core.modal.entity.Permission;

import java.util.List;

/**
 * @ClassName PermissionBlock
 * @Desc PermissionBlock
 * @Author I am Gluck
 * @Date 2022/5/17 - 8:31 下午
 **/
public interface PermissionBlock {

    List<Permission> findPermissionByRoleName(String name);

    List<PermissionListDTO> queryPermissionByList(Long pid);

    List<Permission> queryPermissionListByPid(Long pid);


}
